package com.ruoyi.table.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.table.domain.Middle;
import com.ruoyi.table.domain.ResponseEntity;
import com.ruoyi.table.service.MiddleService;
import com.ruoyi.table.mapper.MiddleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 */
@Service
public class MiddleServiceImpl extends ServiceImpl<MiddleMapper, Middle>
    implements MiddleService{

    @Resource
    private MiddleMapper middleMapper;

    @Override
    public ResponseEntity MiddleList() {
        List<Middle> list=middleMapper.MiddleList();
        Map map=new HashMap();
        map.put("list",list);
        return new ResponseEntity(list);
    }
}




